#ifndef __DRV_SPI_H__
#define __DRV_SPI_H__

#ifdef __cplusplus
extern "C"{
#endif

/* Includes--------------------------------------------- */
#include "stdint.h"
#include "gd32e23x.h"

/* Define----------------------------------------------- */
/* Typedef enum----------------------------------------- */
/* Typedef struct--------------------------------------- */
/* External variables----------------------------------- */
/* External functions----------------------------------- */
extern void DrvSPIInit(void);
extern void DrvSPISetSpeed(uint8_t speed);
extern void DrvSPIWrite(uint8_t data);
extern uint8_t DrvSPIRead(void);

#ifdef __cplusplus
}
#endif

/* End of file------------------------------------------ */
#endif
